package com.nervenets.shopping.hibernate.domain.common;

import com.nervenets.shopping.enumeration.AttachmentType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Attachment implements Serializable {
    @ApiModelProperty(value = "附件名称")
    private String name;
    @ApiModelProperty(value = "附件描述")
    private String desc;
    @ApiModelProperty(value = "附件类型")
    private AttachmentType type;
    @ApiModelProperty(value = "附件链接")
    private String url;
    @ApiModelProperty(value = "附件长度")
    private int length;
}
